export default {
  name:"ConfirmOrderSuc",
  components: {

  },
  data(){
    return {
      from:''

    }
  },
  methods:{
    goHome(){
      if(this.$fromApp(this)){
        this.$router.replace({path:'/purchase/myPurchase',query:{id:this.$route.query.sellerId,from:'app'}})
      }else{
        this.$router.replace({path:'/purchase/myPurchase',query:{id:this.$route.query.sellerId}})
      }
    }
  },
  mounted:function(){
    this.from=this.$route.query.from
  }
}
